package org.liang.activemq.controller;

import org.liang.activemq.service.MqSentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * indexcontroller测试
 * @author liang
 * @date 2018年1月25日 下午2:17:06
 * @version 1.0
 */
@RestController
public class IndexController {

	@RequestMapping("send")
	public String send() {
		mqSentService.sendMsg("hello World");
		return "以发送，请查收";
	}
	
	@Autowired
	private MqSentService mqSentService;
}
